package dviz.test.vo;

import java.util.HashMap;

import com.jme.scene.Node;

import dviz.tools.ModelRepository;
import dviz.tools.ModelUtil;
import dviz.visualSystem.impl.AnimationObject;


public class Terrain extends AnimationObject {

	public Terrain(HashMap<String, Object> initVector) {
		super(initVector);

		ModelRepository modelRepository = ModelRepository.get();
		Node spatial = (Node) (modelRepository.getRepository().get("terrain"));
		
		spatial.setLocalScale(100);
		spatial.updateRenderState();
		spatial.updateGeometricState(0, true);

		getRenderNode().attachChild(spatial);
		ModelUtil.printNodeStructure(getRenderNode(), 0);
		// getRenderNode().setName("Terrain");
	}

}
